package gob.inei.enaho.model.database;

import gob.inei.enaho2014.R;

import util.android.sqlite.MiSQLiteOpenHelper;
import android.content.Context;

public class EnahoOpenHelper 
extends MiSQLiteOpenHelper
{
	
	public static final String DATABASE_NAME = "bdenaho2014";	
	public static final int DATABASE_VERSION = 2;//Android obliga a que comience en UNO

	public EnahoOpenHelper(Context context) {
		super(context, DATABASE_NAME, DATABASE_VERSION);
		
		scriptsPorVersion.put(1, new int[]{
				R.raw.pais,
				R.raw.ubigeo_dpto,
				R.raw.ubigeo_prov,
				R.raw.ubigeo_dist,
				R.raw.enaho_personal,				
				R.raw.enaho_marco,
				R.raw.enaho_campo,
				R.raw.enaho_campo_ena01,
				R.raw.enaho_campo_ena01a,
				R.raw.enaho_campo_ena01b,
				R.raw.enaho_campo_ena02,
				R.raw.enaho_campo_ena04
		});	
				
		scriptsPorVersion.put(2, new int[]{R.raw.panel});
		
		//scriptsPorVersion.put(3, new int[]{R.raw.enaho_campo2014_03});
		
	}

	

	
	
}
